<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/10/30
 * Time: 16:37
 */

namespace app\admin\validate;


use think\Validate;

class Links extends Validate
{
    protected $rule = [
        'lkname' => 'require|max:10',
        'lkurl' => 'require|max:35',
    ];
    protected $message = [
        'lkname.require' => '链接名称必须填',
        'lkname.max' => '链接名称最多不能超过10个字符',
        'lkname.unique' => '链接名称不能重复',
        'lkurl.require' => '链接地址必须填',

    ];
}